package mysqlinit

import "gorm.io/gorm"

type House struct {
	gorm.Model
	UserId     int     `gorm:"type:int(11);not null"`
	HouseTitle string  `gorm:"type:varchar(150);not null"`
	HouseRent  float64 `gorm:"type:decimal(10,2);not null"`
	Address    string  `gorm:"type:varchar(50);not null"`
	Community  string  `gorm:"type:varchar(20);not null"`
	FloorCode  string  `gorm:"type:varchar(25);not null"`
	FloorNum   int     `gorm:"type:int(11);not null"`
	HouseArea  int     `gorm:"type:int(11);not null"`
	Status     int64   `gorm:"type:int(10);not null;commit:1上架 2下架"`
}
type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(20);not null"`
	Password string `gorm:"type:varchar(32);not null"`
}
